﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace GuanYijia.EntityFarmeworkCore.Migrations
{
    public partial class log11 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<decimal>(
                name: "safety_stock",
                table: "ProductInfos",
                type: "decimal(24,2)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(65,30)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "wholesale_decimal",
                table: "Product_Prices",
                type: "decimal(24,2)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(65,30)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "purchase_decimal",
                table: "Product_Prices",
                type: "decimal(24,2)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(65,30)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "low_decimal",
                table: "Product_Prices",
                type: "decimal(24,2)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(65,30)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "commodity_decimal",
                table: "Product_Prices",
                type: "decimal(24,2)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(65,30)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "number",
                table: "Product_Initial_Stocks",
                type: "decimal(24,2)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(65,30)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "current_number",
                table: "Product_Current_Stocks",
                type: "decimal(24,2)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(65,30)",
                oldNullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<decimal>(
                name: "safety_stock",
                table: "ProductInfos",
                type: "decimal(65,30)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(24,2)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "wholesale_decimal",
                table: "Product_Prices",
                type: "decimal(65,30)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(24,2)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "purchase_decimal",
                table: "Product_Prices",
                type: "decimal(65,30)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(24,2)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "low_decimal",
                table: "Product_Prices",
                type: "decimal(65,30)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(24,2)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "commodity_decimal",
                table: "Product_Prices",
                type: "decimal(65,30)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(24,2)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "number",
                table: "Product_Initial_Stocks",
                type: "decimal(65,30)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(24,2)",
                oldNullable: true);

            migrationBuilder.AlterColumn<decimal>(
                name: "current_number",
                table: "Product_Current_Stocks",
                type: "decimal(65,30)",
                nullable: true,
                oldClrType: typeof(decimal),
                oldType: "decimal(24,2)",
                oldNullable: true);
        }
    }
}
